export default angular
    .module('app.situationRouter', ['ui.bootstrap'])
    .config(['$urlRouterProvider', '$stateProvider', function ($urlRouterProvider, $stateProvider) {
        $urlRouterProvider.when('/situation', '/Situation'); 
        $stateProvider
            .state('situation', {
                url: '/Situation',
                templateProvider: $q => {
                    return $q(resolve => {
                        require.ensure([], () => {
                            resolve(require('./situation.html'));
                        }, 'situation.html');
                    });
                },
                controller: 'situationController as vm',
                css : require('./situation.css'),
                resolve: {
                    loadController: ($q, $ocLazyLoad) => {
                        return $q(resolve => {
                            require.ensure([], () => {
                                /*let ngMod = require('./situation').default;
                                $ocLazyLoad.load( { name: ngMod.name } );
                                resolve(ngMod.controller);*/
                            }, 'situation')
                        });
                    }
                }
            })
            
    }]);